import initMonitor from "../../lib/bundle.umd.js";
const options = {
  projectId: "projectId",
  userId: "userId",
  monitorReportUrl: "http://localhost:8000/upload",
  isHashType: true,
};

initMonitor(options);
let flag = true;
const clickBtn = () => {
  flag = !flag;
  console.log(flag);
  const url = flag ? "./role.png" : "./role123.png";
  document.getElementById("img").src = url;
};
window.onload = () => {
  document.getElementById("btn").addEventListener("click", () => {
    clickBtn();
  });
};
